package schoolbolg_gh326.service;


import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import schoolbolg_gh326.Bean.RegisterState;

public interface UserService {
	@GET("ClientUserAction!login.action")
	Call<String> login(@Query("user.name") String username,
						@Query("user.password") String password );
	
	
	@GET("ClientUserAction!isNameConflict.action")
	Call<String> isNameConflict(@Query("user.name")String username);
	

	@GET("UploadImageAction!upload.action")
	Call<String> upload(@Query("filename")String filename,
						@Query("filebody")String filebody);
	
	@GET("ClientUserAction!register.action")
	Call<String> register(@Query("user.name")String username,
	 					  @Query("user.password")String password,
	 					  @Query("user.trueName")String usertrueName,
	 					  @Query("user.age")String age,
	 					  @Query("user.picture")String pictrure
	 					  );
	
	@GET("ClientUserAction!register.action")
	Call<RegisterState> register2(@Query("user.name")String username,
	 					  @Query("user.password")String password,
	 					  @Query("user.trueName")String usertrueName,
	 					  @Query("user.age")String age,
	 					  @Query("user.picture")String pictrure
	 					  );
	
	@GET("UploadImageAction!upload.action")
    Call<String> uploadImage(@Query("filename") String filename, 
    		@Query("filebody") String filebody);
	
	 					  
	
	
}
